<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <meta http-equiv="X-UA-Compatible" content="ie=edge" />
        <title>Document</title>
        <style>
            [v-cloak] {
                display: none;
            }
        </style>
    </head>
    <body>
        <div id="app">
            <p v-cloak>{{ message }}</p>
            <h4 v-text="message"></h4>

            <div>{{ message2 }}</div>
            <div v-text="message2"></div>
            <div v-html="message2"></div>

            <input type="button" value="按钮" v-bind:title="mytitle + '123'" v-on:click="show" />
        </div>

        <script src="lib/vue-2.6.10.js"></script>
        <script>
            var app = new Vue({
                el: '#app',
                data: {
                    message: 'Hello Vue',
                    message2: '<h1>哈哈，我是一个大大的H1</h1>',
                    mytitle: '这是一个自己定义的title'
                },
                methods: {
                    show: function() {
                        alert('Hello');
                    }
                }
            });
        </script>
    </body>
</html>
